<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function obj(o){
				function F() {}
				F.prototype=o;
				return new F();
			}
			var box={name:"张三",arr:["brother","sister","dad"]};
			var o1=obj(box);
			var o2=obj(box);
			o2.name="李四";
			console.log(o2.name)
			console.log(o2.__proto__.name)
		</script>
	</body>
</html>
